﻿@{
    Layout = "_LayoutPhone";
    ViewData["Title"] = "主页";
}
<script>
    $(document).ready(function () {
        xingwenzhanshi();
        $(function () {
            var isPageHide = false;
            window.addEventListener('pageshow', function () {
                if (isPageHide) {
                    window.location.href = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=ww500458ad942a211f&redirect_uri=http://web.xyufu.cn/PhoneShouYe/ShouYe&response_type=code&scope=snsapi_privateinfo&agentid=1000002&state=STATE#wechat_redirect";
                }
            });
            window.addEventListener('pagehide', function () {
                isPageHide = true
            });
        })
        //alert(window.location.href.indexOf("#"));
        //if (window.location.href.indexOf("#") == -1) {
        //    window.location.href = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=ww500458ad942a211f&redirect_uri=http://web.xyufu.cn/PhoneShouYe/ShouYe&response_type=code&scope=snsapi_privateinfo&agentid=1000002&state=STATE#wechat_redirect";
        //}

    })

    function xingwenzhanshi() {
        $.ajax({
            type: 'post',
            url: '../XinWen/GetXinWen',
            async: false,
            dataType: 'text',
            success: function (date) {
                $("#marquePic1").html(date);
                $("#marquePic2").html(date);
            },
        })
    }
    function XinWenXiangXi(id) {
        location.href = "XinWenXiangXi?id=" + id + "&panduan=shouye";
        //location.href = "../PhoneGeRen/ZhengZaiJianShe";
    }
</script>


<meta charset="UTF-8">
@*<meta name="viewport" content="width=device-width, initial-scale=1.0">*@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
<title>Document</title>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="~/GoTRI/vendor/bootstrap-4.1.3/css/bootstrap.min.css">
<!-- my-customer CSS -->
<link rel="stylesheet" href="~/GoTRI/css/tfk-index.css">
<script src="~/GoTRI/js/popper.min.js"></script>
<script src="~/GoTRI/vendor/bootstrap-4.1.3/js/bootstrap.min.js"></script>
<body>
    <div class="news-bulletin">
        <script>
            $(document).ready(function () {
                $("#shou1").attr("hidden", "");
                $("#shou2").removeAttr("hidden", "");
                $("#shou3").attr("hidden", "");
                $("#shou4").removeAttr("hidden", "");
                $(".gif").css("display", "flex");
                $("#nb").attr("hidden", "");
            })
        </script>
        <div class="news-l">
            <span>新闻</span>
            <span>NEWS</span>
        </div>
        <div id="demo" style="overflow: hidden;" class="news-r">
            <div id="marquePic1">
                @*<div>华山路565号闽江国际新增一套房源。</div>
                    <div>恭喜纳米喜提富力江湾三室一厅。</div>
                    <div>华山路565号闽江国际新增一套房源。</div>
                    <div>恭喜纳米喜提富力江湾三室一厅。</div>*@
            </div>
            <div id="marquePic2" valign="top">
            </div>
        </div>
        <div style="width:50px;background-color:#F5F5F5;border-top-right-radius: 15px;border-bottom-right-radius: 15px;text-align: center;padding: 25px 0;">
            <span style="color:#A9A9A9;font-size:13px" onclick='window.location.href="XinWenList"'>更多</span>
        </div>
    </div>

    <!-- 主页 -->
    <div class="main">
        <div class="tit">
            <div>快捷入口</div>
        </div>
        <ul class="content">
            @*@foreach (var item in ViewBag.list1)
        {
            <div>@item.Id</div><div></div>
        }*@
            @foreach (var item in ViewBag.list)
            {
                if (item == "9")
                {
                    <li>
                        <div>
                            <img style="width:100%;height:100%" onclick='$("#nb").removeAttr("hidden", "");window.location.href="../PhoneKeHu/GenJinJiLuToday"' src="~/GoTRI/img/今日跟进.png">
                        </div>
                        <span>今日跟进</span>
                    </li>
                }
                if (item == "10")
                {
                    <li>
                        <div>
                            <img style="width:100%;height:100%" onclick='$("#nb").removeAttr("hidden", "");window.location.href="../PhoneKeHu/GenJinJiLuToday?day=3"' src="~/GoTRI/img/三日内跟进.png">
                        </div>
                        <span>三日内跟进</span>
                    </li>
                }
                if (item == "11")
                {
                    <li>
                        <div>
                            <img style="width:100%;height:100%" onclick='$("#nb").removeAttr("hidden", "");window.location.href="../PhoneKeHu/My_Customer?panduan=shouye"' src="~/GoTRI/img/本人汇报.png">
                        </div>
                        <span>我的客户</span>
                    </li>
                }
                if (item == "12")
                {
                    <li>
                        <div>
                            <img style="width:100%;height:100%" onclick='$("#nb").removeAttr("hidden", "");window.location.href="../PhoneKeHu/KeHuAdd"' src="~/GoTRI/img/本人汇报.png">
                        </div>
                        <span>添加客户</span>
                    </li>
                }
                if (item == "13")
                {
                    <li>
                        <div>
                            <img style="width:100%;height:100%" onclick='$("#nb").removeAttr("hidden", "");window.location.href="../PhoneHuiBao/RiBao"' src="~/GoTRI/img/日报.png">
                        </div>
                        <span>日报</span>
                    </li>
                }
                if (item == "14")
                {
                    <li>
                        <div>
                            <img style="width:100%;height:100%" onclick='$("#nb").removeAttr("hidden", "");window.location.href="../PhoneHuiBao/ZhouBao"' src="~/GoTRI/img/周报.png">
                        </div>
                        <span>周报</span>
                    </li>
                }
                if (item == "15")
                {
                    <li>
                        <div>
                            <img style="width:100%;height:100%" onclick='$("#nb").removeAttr("hidden", "");window.location.href="../PhoneHuiBao/YueBao"' src="~/GoTRI/img/月报.png">
                        </div>
                        <span>月报</span>
                    </li>
                }
                if (item == "16")
                {
                    <li>
                        <div>
                            <img style="width:100%;height:100%" onclick='$("#nb").removeAttr("hidden", "");window.location.href="../PhoneKeHu/KeHuLeiXingList?ZhuangTai=已到访"' src="~/GoTRI/img/来访待处理.png">
                        </div>
                        <span>来访待处理</span>
                    </li>
                }
                if (item == "17")
                {
                    <li>
                        <div>
                            <img style="width:100%;height:100%" onclick='$("#nb").removeAttr("hidden", "");window.location.href="../KeHuZiYuanChi/PhoneKeHuZiYuanChi"' src="~/GoTRI/img/新分配客户.png">
                        </div>
                        <span>新分配客户</span>
                    </li>
                }
                if (item == "18")
                {
                    <li>
                        <div>
                            <img style="width:100%;height:100%" onclick='$("#nb").removeAttr("hidden", "");window.location.href="../PhoneFangYuan/FangDaiJiSuanQi"' src="~/GoTRI/img/新分配客户.png">
                        </div>
                        <span>房贷计算器</span>
                    </li>
                }
                if (item == "19")
                {
                    <li>
                        <div>
                            <img style="width:100%;height:100%" onclick='$("#nb").removeAttr("hidden", "");window.location.href="../PhoneYiJianFanKui/YiJianFanKuiAdd"' src="~/GoTRI/img/新分配客户.png">
                        </div>
                        <span>意见反馈</span>
                    </li>
                }
                if (item == "20")
                {
                    <li>
                        <div>
                            <img style="width:100%;height:100%" onclick='$("#nb").removeAttr("hidden", "");window.location.href="../PhoneBeiWangLu/CreateAndModify"' src="~/GoTRI/img/备忘录.jpg">
                        </div>
                        <span>备忘录</span>
                    </li>
                }
                if (item == "21")
                {
                    <li>
                        <div>
                            <img style="width:100%;height:100%" onclick='$("#nb").removeAttr("hidden", "");window.location.href="../PhoneBeiWangLu/CreateAndModify"' src="~/GoTRI/img/销售情况.jpg">
                        </div>
                        <span>销售情况</span>
                    </li>
                }
                if (item == "22")
                {
                    <li>
                        <div>
                            <img style="width:100%;height:100%" onclick='$("#nb").removeAttr("hidden", "");window.location.href="../PhoneTongJi/DaoFangQingKuang"' src="~/GoTRI/img/到访情况.jpg">
                        </div>
                        <span>到访情况</span>
                    </li>
                }
                if (item == "23")
                {
                    <li>
                        <div>
                            <img style="width:100%;height:100%" onclick='$("#nb").removeAttr("hidden", "");window.location.href="../PhoneTongJi/GenJinQingKuang"' src="~/GoTRI/img/跟进情况.jpg">
                        </div>
                        <span>跟进情况</span>
                    </li>
                }
                if (item == "26")
                {
                    <li>
                        <div>
                            <img style="width:100%;height:100%" onclick='$("#nb").removeAttr("hidden", "");window.location.href="../PhoneGongGao/PhoneGongGaoList"' src="~/GoTRI/img/跟进情况.jpg">
                        </div>
                        <span>公告</span>
                    </li>
                }
            }



            @*<li>
            <div>
                <img style="width:100%;height:100%" onclick='$("#nb").removeAttr("hidden", "");window.location.href="../PhoneKeHu/KeHuLeiXingList?ZhuangTai=逾期"' src="~/GoTRI/img/逾期客户.png">
            </div>
            <span>逾期客户</span>
        </li>
        <li>
            <div>
                <img style="width:100%;height:100%" onclick='$("#nb").removeAttr("hidden", "");window.location.href="../PhoneKeHu/KeHuLeiXingList?ZhuangTai=未到访"' src="~/GoTRI/img/未到访.png">
            </div>
            <span>未到访客户</span>
        </li>*@
            @*<li>
            <div>
                <img style="width:100%;height:100%" onclick='$("#nb").removeAttr("hidden", "");window.location.href="../PhoneYiJianFanKui/YiJianFanKuiAdd"' src="~/GoTRI/img/新分配客户.png">
            </div>
            <span>带看转化率</span>
        </li>*@
        </ul>
        <br />
        <br />
    </div>
</body>
<script type="text/javascript">
    //纵向滚动 需要设置div的高度
    var speed = 100;
    marquePic2.innerHTML = marquePic1.innerHTML
    function Marquee() {
        if (demo.scrollTop >= marquePic1.scrollHeight) {
            demo.scrollTop = 0
        } else {
            demo.scrollTop++
        }
    }
    var MyMar = setInterval(Marquee, speed)
    demo.onmouseover = function () { clearInterval(MyMar) }
    demo.onmouseout = function () { MyMar = setInterval(Marquee, speed) }
</script>